import { request } from './request'
import qs from 'qs'



export function listShareRule(obj) {
	return request({
		url: `fenxiao/listShareRule`,
		method: 'post',
		data: qs.stringify(obj)
	})
}
export function updateShareRule(obj) {
	return request({
		url: `fenxiao/updateShareRule`,
		method: 'post',
		data: qs.stringify(obj)
	})
}

export function addShareRuleDouble(obj) {
	return request({
		url: `fenxiao/addShareRuleDouble`,
		method: 'post',
		data: qs.stringify(obj)
	})
}
// 删除奖项设置
export function delShareRuleDouble(obj) {
	return request({
		url: `fenxiao/delShareRuleDouble`,
		method: 'post',
		data: qs.stringify(obj)
	})
}

// 获取活动规则
export function getActivitySharing(obj) {
	return request({
		url: `fenxiangShare/getActivitySharing`,
		method: 'post',
		data: qs.stringify(obj)
	})
}
// 添加活动规则
export function addActivitySharing(orderObj) {
	return request({
		url: `fenxiangShare/addActivitySharing`,
		method: 'post',
		data: orderObj,
		headers: {
			'Content-Type': 'multipart/form-data'
		}
	})
}
// 修改活动规则
export function updateActivitySharing(obj) {
	return request({
		url: `fenxiangShare/updateActivitySharing`,
		method: 'post',
		data: qs.stringify(obj)
	})
}
// 删除活动规则
export function delActivitySharing(obj) {
	return request({
		url: `fenxiangShare/delActivitySharing`,
		method: 'post',
		data: qs.stringify(obj)
	})
}
